Originally published at
www.ikriv.com. Please leave any
comments there.
Python has two ways to convert an object to a string: str(x) and repr(x). str is supposed to be user-readable, and repr is more technical, e.g. for debugging purposes.
To my surprise, if I have a list of things, str(list) and repr(list) do the same thing and include a repr of
(
Read more... )